package com.ruoyi.admin.domain;

import com.ruoyi.common.core.domain.entity.User;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 话题管理对象 zhx_topic
 * 
 * @author ruoyi
 * @date 2024-11-11
 */
public class ZhxTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 话题id */
    private Long topicId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 话题标题 */
    @Excel(name = "话题标题")
    private String topicTitle;

    /** 话题内容 */
    @Excel(name = "话题内容")
    private String topicContent;

    /** 封面 */
    @Excel(name = "封面")
    private String topicCover;

    /** 点赞数（默认0） */
    @Excel(name = "点赞数", readConverterExp = "默=认0")
    private Long likeNum;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 用户 */
    private User sysUser;

    public User getSysUser() {
        return sysUser;
    }

    public void setSysUser(User sysUser) {
        this.sysUser = sysUser;
    }

    /** 是否折叠 */
    private Integer isFold;

    public Integer getIsFold() {
        return isFold;
    }

    public void setIsFold(Integer isFold) {
        this.isFold = isFold;
    }

    /** 是否点赞 */
    private Integer isLike;

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }

    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTopicTitle(String topicTitle) 
    {
        this.topicTitle = topicTitle;
    }

    public String getTopicTitle() 
    {
        return topicTitle;
    }
    public void setTopicContent(String topicContent) 
    {
        this.topicContent = topicContent;
    }

    public String getTopicContent() 
    {
        return topicContent;
    }
    public void setTopicCover(String topicCover) 
    {
        this.topicCover = topicCover;
    }

    public String getTopicCover() 
    {
        return topicCover;
    }
    public void setLikeNum(Long likeNum) 
    {
        this.likeNum = likeNum;
    }

    public Long getLikeNum() 
    {
        return likeNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("topicId", getTopicId())
            .append("userId", getUserId())
            .append("topicTitle", getTopicTitle())
            .append("topicContent", getTopicContent())
            .append("topicCover", getTopicCover())
            .append("likeNum", getLikeNum())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
